package net.flyinggroup.scs.gitter.service.gitter;

import org.springframework.web.util.UriComponentsBuilder;

public class GitterUriBuilder {
    public static UriComponentsBuilder from(GitterProperties.GenericProperties properties) {
        return UriComponentsBuilder.fromUri(properties.getEndpoint())
                .pathSegment(properties.getVersion(), properties.getMessagesResource().toASCIIString());
    }
}
